﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CRC.GestionSalones.Controladores;

namespace CRC.GestionSalones.Presentacion
{
    public partial class ExaminarSupPresidentes : ExaminarPersonas
    {
        ControladorListarPresidentes cLP = new ControladorListarPresidentes();

        public ExaminarSupPresidentes() : base()
        {
            InitializeComponent();
            try 
            {
                base.cmbPersonas.SetData(cLP.todosPresidentes());
            }
            catch (Exception ex) 
            {
                MessageBox.Show(
                    ex.Message, 
                    "Error", 
                    MessageBoxButtons.OK, 
                    MessageBoxIcon.Error, 
                    MessageBoxDefaultButton.Button1
                );
            }
        }
    }
}
